package com.pango.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.pango.system.entity.ResourceEntity;
import com.pango.system.model.Resource;

public interface ResourceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Resource record);

    int insertSelective(Resource record);

    Resource selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);
    
    List<Resource> selectAll();
    
    List<ResourceEntity> selectResourcesByUserName(String username);
    
    List<String> selectResourceNamesByUserName(String username);
    
    List<ResourceEntity> selectResourcesByParentId(@Param(value="parentId")Long parentId);
}